package graph.geometricshapes
{
	public class GeometricRectangle extends GeometricShape
	{
		public static const NAME:String = "GeometricRectangle";
		public override function get getName():String
		{
			return NAME;
		}
				
		public function GeometricRectangle(width:Number = DefaultWidth, height:Number = DefaultHeight)
		{
			super();
			this.width = width;
			this.height = height;
		}
		
		public override function getArea():Number
		{
			var result:Number = this.width * this.height;
			return result;
		}
		
		public override function getPerimeter():Number
		{
			var result:Number = 2 * (this.width + this.height);
			return result;
		}

	}
}